package com.design.patterns.list.iterator.aggregate;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author Wangzhiwen
 */
public class ArtCollege implements College {

    private List<Department> departments;


    public ArtCollege(int size) {
        departments = new ArrayList<>(size);
    }

    @Override
    public String name() {
        return "艺术学院";
    }

    @Override
    public void add(String name, String desc) {
        Department department = new Department(name, desc);
        departments.add(department);
    }

    @Override
    public Iterator<Department> createIterator() {
        return null;
    }
}
